package com.jml.生产者消费者.葛一鸣书;


/**
 * @author:jml
 * @date: 2019/6/19 0019 22:27
 * @description：
 */

public final class PCData {                              //任务相关的数据

    private final int intData;                            //数据

    public PCData(int d) {
        intData = d;
    }

    public PCData(String d) {
        intData = Integer.valueOf(d);
    }

    public int getData() {
        return intData;
    }

    @Override
    public String toString() {
        return "data:" + intData;
    }
}
